-- GENERATED SPELL FOR [Battle-Priest Gina] --


function spell0_33330(pUnit, Event) --@Dispel Magic,n/a--
pUnit:FullCastSpellOnTarget(63499,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33330', 577, 1)
end

function spell1_33330(pUnit, Event) --@Greater Heal,Heal--
pUnit:FullCastSpellOnTarget(62809,pUnit)
pUnit:RegisterEvent('Sorts_33330', 1500, 1)
end

function spell2_33330(pUnit, Event) --@Smite,n/a--
pUnit:FullCastSpellOnTarget(61923,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33330', 2000, 1)
end

function Sorts_33330(pUnit, Event)
local choix_sorts_33330 = math.random(0, 2)
if choix_sorts_33330 == 0 then
pUnit:RegisterEvent('spell0_33330', 1, 1)
end
if choix_sorts_33330 == 1 then
pUnit:RegisterEvent('spell1_33330', 1, 1)
end
if choix_sorts_33330 == 2 then
pUnit:RegisterEvent('spell2_33330', 1, 1)
end
end

function mob33330_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_33330', math.random(1500, 3000), 1)
end

function mob33330_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33330_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33330_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(33330, 1, 'mob33330_Action')
RegisterUnitEvent(33330, 2, 'mob33330_Leave')
RegisterUnitEvent(33330, 3, 'mob33330_Kill')
RegisterUnitEvent(33330, 4, 'mob33330_Die')
